/**
 * @Author: guo-bomin 2974463764@qq.com
 * @Date: 2024-01-20 15:34:13
 * @LastEditors: guo-bomin 2974463764@qq.com
 * @LastEditTime: 2024-01-20 17:39:06
 * @FilePath: \vite-vue-app\src\store\index.js
 * @Description: 郭博民16670506200
 * @有问题微信同号询问，急事call我
 * @Copyright (c) 2024 by 湖南習羽网络科技有限公司, All Rights Reserved.
 */
// 拿到modules下的所有文件
const modulesFiles = import.meta.glob('./modules/*.*', { eager: true });
const modules = {};
for (const key in modulesFiles) {
  const moduleName = key.replace(/(.*\/)*([^.]+).*/gi, '$2');
  const value = modulesFiles[key];
  modules[moduleName] = value;
  // console.log(modules);
}

export default modules;
